package ahuy.edu.basic;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Container;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import javax.swing.SwingUtilities;
import javax.swing.plaf.basic.BasicArrowButton;

public class Demo extends JFrame implements ActionListener{

    JTextArea txt_are;
    JPanel panelMail, panel1, panel2;
    JButton btn_xinChao, btn_myClass;

    public static void main(String[] args) {
        Demo de = new Demo();
        de.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        de.setVisible(true);
        de.setSize(400, 300);

    }

    public Demo() {
        super("vidu");
        txt_are = new JTextArea(null,3,50);
        btn_myClass = new JButton("Myclass");
        btn_xinChao = new JButton("Xin chao");
        panel1 = new JPanel();
        panel2 = new JPanel();
        panelMail = new JPanel();
        panelMail.setLayout(new FlowLayout());
        panel1.add(btn_myClass);
        panel2.add(btn_xinChao);
        panelMail.add(panel1);
        panel2.add(txt_are);
        panelMail.add(panel2);
        this.add(panelMail);

    }

    @Override
    public void actionPerformed(ActionEvent e) {
        
    }
}
